
<div class="modal-header">
	<h4 class="modal-title">{{title}}</h4>
</div>
<div class="modal-body">
	<form class="form-horizontal" name="form">
			<div class="form-group">
				<label class="control-label col-sm-4">{{$root.i18n.menu.name}}:</label>
				<div class="col-sm-6">
					<input type="text" ng-model="entity.name" class="form-control" ng-required="true">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-4">{{$root.i18n.public.status}}:</label>
				<div class="col-sm-6">
					<select class="form-control" ng-model="entity.status" ng-required="true">
						<option value="0">{{$root.i18n.menu.statusNormal}}</option>
						<option value="1">{{$root.i18n.menu.statusAbolish}}</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-4">{{$root.i18n.menu.level}}:</label>
				<div class="col-sm-6 ">
					<label class="radio-inline control-label ">
						<input type="radio" name="level" ng-model="entity.level" value="1" ng-disabled="!isCreate"> {{$root.i18n.menu.levelOne}}
					</label>
					<label class="radio-inline control-label ">
						<input type="radio" name="level" ng-model="entity.level" value="2" ng-disabled="!isCreate"> {{$root.i18n.menu.levelTwo}}
					</label>
				</div>
			</div>
			<div class="form-group" ng-if="entity.level == 2">
				<label class="control-label col-sm-4">{{$root.i18n.menu.url}}:</label>
				<div class="col-sm-6">
					<input type="text" ng-model="entity.url" class="form-control" placeholder="{{$root.i18n.menu.urlHolder}}" ng-required="true">
				</div>
			</div>
			<div class="form-group" ng-if="entity.level == 2">
				<label class="control-label col-sm-4">{{$root.i18n.menu.parentMenu}}1:</label>
				<div class="col-sm-6">
					<select class="form-control" ng-model="topMenu.top" ng-options="m as m.name for m in topMenu.list" ng-required="true">
					</select>
				</div>
			</div>
		</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{$root.i18n.public.ok}}</button>
	<button class="btn btn-default" type="button" ng-click="cancel()">{{$root.i18n.public.cancel}}</button>
</div>